﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProcurementManagement.Domain.Dtos
{
    public class ListProcurementReturnDto
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        public int VendorId { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? VName { get; set; }

        /// <summary>
        /// 采购退货id
        /// </summary>
        public int PurchaseReturnsIds { get; set; }
        /// <summary>
        /// 采购退货编号
        /// </summary>
        public string? PurchaseReturnsCode { get; set; }
        /// <summary>
        /// 采购退货主题
        /// </summary>
        public string? PurchaseReturnsTopic { get; set; }
        /// <summary>
        /// 采购人员
        /// </summary>
        public string? PPurchasingStaff { get; set; }
        /// <summary>
        /// 退货人员
        /// </summary>
        public string? PReturnsPersonnel { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? PRDocumentNumber { get; set; }
        /// <summary>
        /// 我方代表
        /// </summary>
        public string? PRPeople { get; set; }
        /// <summary>
        /// 对方代表
        /// </summary>
        public string? PRCountpartPeople { get; set; }
        /// <summary>
        /// 人员档案的唯一标识符
        /// </summary>
        public int? ManpowerId { get; set; }
        /// <summary>
        /// 退货类别
        /// </summary>
        public string? PRReturnType { get; set; }
        /// <summary>
        /// 退货日期
        /// </summary>
        public DateTime? PRReturnDate { get; set; }
        /// <summary>
        /// 退款方式
        /// </summary>
        public string? PRReturnManner { get; set; }
        /// <summary>
        /// 退货地址
        /// </summary>
        public string? PRReturnAddress { get; set; }
        /// <summary>
        /// 数量合计
        /// </summary>
        public int? PRTotalQuantity { get; set; }
        /// <summary>
        /// 金额合计
        /// </summary>
        public decimal? PRtotalAmount { get; set; }
        /// <summary>
        /// 出库进展状态
        /// </summary>
        public int? PROutboundProgress { get; set; }
        /// <summary>
        /// 发货状态
        /// </summary>
        public int? PRShipmentState { get; set; }

        /// <summary>
        /// 采购退货产品id
        /// </summary>
        public int ReturnProductId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? RPNum { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? RPPrice { get; set; }

        public decimal? RefundAmoun { get; set; }


        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? PUnit { get; set; }

        /// <summary>
        /// 产品分类ID
        /// </summary>

        public int ProductTypeId { get; set; }

    }
}
